package com.itheima.config;

import com.alibaba.druid.pool.DruidDataSource;
import org.mybatis.spring.SqlSessionFactoryBean;
import org.mybatis.spring.mapper.MapperScannerConfigurer;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.*;
import org.springframework.stereotype.Component;

import javax.sql.DataSource;

/**
 * @param核心配置类
 * @return
 */
@ComponentScan("com.itheima")//这个是开启包扫描
//导入从的配置类
@Import({DbConfig.class,MyBatisConfig.class})
public class SpringConfig {

}
